"""A basic module for measuring degrees in the graph."""

from graph import Graph

def degree(G, v):
    """In graph G, return the degree of a certain vertex v."""   CHANGE FOR THIRD COMMIT!!!
    assert isinstance(G,Graph)
    return len(G.getNeighbors(v))
